package ad.android.dao;

import ad.android.exception.DaoException;
import ad.android.model.Application;

public interface IApplicationDao {
	/**
	 * 根据LicenseKey查找应用
	 * @param key
	 * @return
	 * @throws DaoException
	 */
	public Application findApplicationByLicenseKey(String key)throws DaoException;

	/**
	 * 根据licenseKey查找Seckey
	 * @param licenseKey
	 * @throws DaoException
	 */
	public String findSeckeyByLicenseKey(String licenseKey)throws DaoException;

	/**
	 * 查找id为appId的Application，没有返回null
	 * @param appId
	 * @return
	 * @throws DaoException
	 */
	public Application findApplication(Long appId)throws DaoException;
}
